import type { MockMethod } from 'vite-plugin-mock'
export default [
  {
    url: '/api/dashboard/getData',
    method: 'get',
    response: () => {
      return {
        code: 20000,
        msg: "获取成功",
        data: {
          dashdata1: 102400,
          dashdata2: 81212,
          dashdata3: 9280,
          dashdata4: 13600,
          chartdata1: [820, 932, 901, 934, 1290, 1330, 1320],
          chartdata2: [
            { value: 40, name: 'rose 1' },
            { value: 38, name: 'rose 2' },
            { value: 22, name: 'rose 3' },
            { value: 18, name: 'rose 4' },
            { value: 10, name: 'rose 5' },
            { value: 4, name: 'rose 6' },
          ],
          chartdata3: [
            {
              value: [5200, 12000, 28000, 35000, 50000, 18000],
            },
            {
              value: [4000, 8000, 24000, 26000, 22000, 14000],
            }
          ],
          chartdata4: [[72, 72, 72, 0, 0, 0], [72, 72, 180, 0, 33.34, 33.34], [72, 72, 288, 0, 50, 50], [72, 72, 396, 0, 40, 40], [72, 180, 180, -25, -25, 0], [72, 180, 288, -60, 0, 60], [72, 180, 396, -50, 16.66, 66.66], [72, 288, 72, 50, 0, -50], [72, 396, 72, 40, 0, -40], [72, 396, 180, 16.66, -50, -66.66], [180, 72, 72, -33.34, -33.34, 0], [180, 72, 288, 60, 60, 0], [180, 72, 396, 50, 66.66, 16.66], [180, 180, 288, 0, 16.66, 16.66], [180, 288, 396, -37.5, 0, 37.5], [180, 396, 72, 66.66, 50, -16.66], [180, 396, 396, -22.22, -22.22, 0], [288, 72, 72, -50, -50, 0], [288, 180, 288, 14.28, 0, -14.28], [288, 288, 180, 0, 14.28, 14.28], [288, 288, 288, 0, 0, 0], [288, 396, 180, 37.5, 37.5, 0], [288, 396, 288, 11.11, 0, -11.11], [288, 396, 396, -10, -10, 0], [396, 72, 72, -40, -40, 0], [396, 72, 180, -16.66, -66.66, -50], [396, 72, 288, 14.29, -42.85, -57.14], [396, 72, 396, 37.5, 0, -37.5], [396, 180, 288, 0, -37.5, -37.5], [396, 180, 396, 22.22, 0, -22.22], [396, 288, 396, 10, 0, -10], [396, 396, 72, 0, 37.5, 37.5], [396, 396, 288, 0, 10, 10]]
        },
      }
    },
  }
] as MockMethod[]
